﻿Imports System.Configuration
Public Class Connection
   
    Public Shared Function GetDBConn() As ADODBU.dbConn
        Dim dbConn As New ADODBU.dbConn
        Dim connectionStringName As String = System.Configuration.ConfigurationManager.ConnectionStrings("LocalSqlServer").ConnectionString
        dbConn = New ADODBU.dbConn
        dbConn.Connectionstring = connectionStringName
        dbConn.Open()
        Return dbConn
    End Function

    Public Shared Function GetDBConnData() As ADODBU.dbConn
        Dim dbConn As New ADODBU.dbConn
        Dim connectionStringName As String = System.Configuration.ConfigurationManager.ConnectionStrings("LocalSqlServer").ConnectionString
        dbConn = New ADODBU.dbConn
        dbConn.Connectionstring = connectionStringName
        dbConn.Open()
        Return dbConn
    End Function
End Class
